package cate.game.role.bag.kitchenware.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBBag;
import cate.game.role.Role;
import cate.game.role.bag.kitchenware.KitchenwareBag;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "厨具 初始化数据 の 返回")
public class KitchenwareInitResp implements MsgOutput {

    @NoteField(value = "主角 [ 厨具 ] 背包数据")
    public KitchenwareBag data;

    public KitchenwareInitResp(){}

    public KitchenwareInitResp(Role role) {
        this.data = role.getBag().kitchenware;
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBBag.KITCHENWARE_INIT_RESP;
    }
}
